package ir.values;

import frontend.visitor.symboltbl.scope.Scope;
import ir.types.datatypes.DataType;

public class Argument extends Value {

    private Value pointerValue;
    public Argument(String originalName, DataType type) {
        super(originalName, type);
    }
    @Override
    public String parseUsingName() {
        return "%" + id;
    }
    public String parseLLVM() {
        return type.toString() + " " + parseUsingName();
    }

    public DataType getDataType() {
        return (DataType) type;
    }

    public Value getPointerValue() {
        return pointerValue;
    }

    public void setPointerValue(Value pointerValue) {
        this.pointerValue = pointerValue;
    }
}
